Skip to content

fix(platform-objects): no-mail invite outcome states the verified-address rule; Import Users says "Already pending" - #35274

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-34889-identity-outcome-copy
Nov 19, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/issue-34889-identity-outcome-copy

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

Fixes #34889
Fixes #35164

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:未配置邮件的部署上,邀请用户与重新发送邀请的结果提示不再叫管理员去用「复制邀请链接」,改为说明规则:接受邀请需要已验证邮箱,无邮件时只有通过社交或 SSO 登录且地址被验证的受邀人能接受,其他人由平台管理员直接建账号;导入用户结果里 alreadyPending 的统计与列标题从「Already pending, told again」改为「Already pending」。十种语言翻译同步。
  • 为什么改:fix(plugin-auth)!: accepting, declining and listing an invitation need a verified email address on every deployment #34883 落地后未验证邮箱不能接受邀请,旧提示把管理员引向一条走不通的路;被停用的待激活人员重新导入时并未通知托管组织,旧标题却写「已再次通知」,与旁边「Why not told: deactivated」矛盾。
  • 风险与回滚:只改文案与列标题,无行为、接口或数据变化;回滚即回退本 PR。
  • 先看:packages/platform-objects/src/identity/invite-outcome-messages.ts(两条 link_only 文案)、packages/platform-objects/src/identity/sys-user.object.ts(import_sso_users 结果的两个标题)、packages/platform-objects/src/apps/translations/zh-CN.objects.generated.ts(译文样本)。
  • 两分钟验证:pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2 src/identity/invitation-delivery-copy.test.ts src/identity/cloud-managed-visibility.test.ts,预期两个文件全绿。
  • 需要你做的:无,席位落地。

What changes

  • Invite outcome messages: the no-mail hand-over matches the verified-address rule (follow-up to #34883) #34889, no-mail invite outcome. INVITE_USER_OUTCOME_MESSAGES.link_only (the four invite_user mirrors: Users, Members, Invitations, the organization page) and RESEND_INVITATION_OUTCOME_MESSAGES.link_only stop telling the admin to "Use Copy Invite Link on the invitation to share it." Accepting, declining and listing an invitation need a verified address, so on a deployment without live mail a copied link admits the sign-up and nothing more. The copy now states the rule, the one exception (an invitee whose social or SSO sign-in verifies the address) and the operator path (a platform administrator creates the account), matching content/docs/deployment/self-hosting.mdx. The file header records the rule; a comment on sys_invitation.copy_invitation_link says what the link admits. No behaviour change: the outcome, the action and Copy Invite Link behave as before.
  • Import Users result: a deactivated pending person's row reads 'Already pending, told again: true' next to 'Why not told: deactivated' #35164, Import Users labels. sys_user.import_sso_users's summary.alreadyPending field and alreadyPending column read "Already pending" instead of "Already pending, told again", as Add User's pendingAgain already does. A deactivated pending person is re-added with host.notified: false, reason: 'deactivated'; whether the host was told stays the "Hosting organization told" and "Why not told" columns' answer.
  • Translations. en regenerated from the source with node scripts/check-i18n-bundles.mjs --write; the ten translated locales carry hand-written translations of the new leaves (the generator keeps translated values; AGENTS.md Documentation Guardrails).
  • Changeset. .changeset/34889-identity-outcome-copy.md, patch on @objectstack/platform-objects.
  • The released 18.5.0 CHANGELOG sentence (comment 6974439913 on Import Users result: a deactivated pending person's row reads 'Already pending, told again: true' next to 'Why not told: deactivated' #35164) is amended in its own docs-only PR, claude/issue-35164-changelog-18-5-0, because AGENTS.md makes packages/*/CHANGELOG.md release-owned: never edited in a code PR.

Tests

  • invitation-delivery-copy.test.ts: the link_only copy of invite_user and resend_invitation does not contain the Copy Invite Link label, in English and in each translated bundle's own label for every mirror.
  • cloud-managed-visibility.test.ts: import_sso_users labels summary.alreadyPending and the alreadyPending column "Already pending", and the host column keeps "told".
  • Ablation, one per new assertion (scripts/ablation-replace.mjs, mutation proven on disk, restore proven by blob and empty git diff HEAD): putting the old "Use Copy Invite Link" sentence back into both link_only copies turns the 2 new link_only cases red (2 failed / 38 passed); putting "Already pending, told again" back on the column turns the label case red (1 failed / 62 passed). The pre-change bundles at cdb327fd hold each locale's translated label 6 times (the label plus the five link_only copies), so the translated leg was red on them too.

Acceptance notes

  • ui/packages/app-shell/src/views/ObjectView.inviteOutcome-27797.test.tsx keeps its own fixture copy of the old link_only tail (LINK_ONLY_TAIL). It is a test-local fixture that feeds the console a declared message and asserts the toast relays it; it does not read the producer, so it stays green and is not a pin on this text. Noted, not changed (outside this card's file surface).
  • docs/qa/platform-checklist/areas/ux-conventions.json (the invite-outcome regression row) quotes the old link_only sentence verbatim as the expected toast. A checklist run of that row on a no-mail deployment will now read the new text. Noted for the checklist owner, not changed here (outside this card's file surface).
  • content/docs/releases/v18/18-3.mdx names Copy Invite Link for the expired-invitation gate, which is still true; left as released. self-hosting.mdx already states the rule and the operator path; unchanged.
  • "told again" elsewhere: plugin-auth/src/auth-route-ledger.ts describes the add-sso-user route's behaviour ("the host is told again, unless the person is deactivated"), which is accurate and does not quote this label; the plugin-audit mention test, a cli test and a ui data test use the phrase in unrelated senses.

Verification

All readings at head ffa2ad230c (branch base origin/main e8a78c4bd).

Build and tests: platform-objects
  • pnpm --workspace-concurrency=2 --filter '@objectstack/platform-objects^...' build under os-verify-lock.sh: VERDICT command-exit 0.
  • pnpm --filter @objectstack/platform-objects test && pnpm --filter @objectstack/platform-objects typecheck under the lock: Test Files 123 passed (123), Tests 2050 passed (2050), check:test-typecheck: OK, VERDICT command-exit 0.
  • Ablation runs as in Tests above: abl1 2 failed / 38 passed then restored (blob == HEAD, git diff HEAD empty); abl2 1 failed / 62 passed then restored.
Derived gate families (dispatch-gates --commands, 67)
  • 66 exit 0, among them pnpm check:i18n ("all bundles in sync, no undeclared authoring keys"), pnpm check:i18n-stale-fill, pnpm check:nul-bytes, pnpm check:doc-authoring, pnpm check:published-files, pnpm check:issue-citations, pnpm check:type-check-coverage, node scripts/check-empty-changeset.mjs --base origin/main, node scripts/check-adr-0087-registration.mjs --base origin/main.
  • NOT MEASURED: pnpm check:dual-build-cjs-loads, exit 3 PREREQUISITE NOT MET (reads every package's dist/; only the platform-objects closure was built locally). CI runs it.
  • dispatch-gates --ran: "67 derived famil(ies) accounted for — 66 run, 1 NOT-MEASURED", exit 0.
  • overlap-check --branch=claude/issue-34889-identity-outcome-copy: VERDICT clean exit 0 against origin/main and fix(auth)!: a server outside development mode refuses a development seed credential #34717 (shares sys-user.object.ts and the eleven translation bundles, merges cleanly).
  • test:repo, the full farm and the type-check lanes are CI's.

Generated by Claude Code

…-address rule

On a deployment without live mail, the link_only outcome of the four
invite_user mirrors and resend_invitation stopped telling the admin to
use Copy Invite Link: accepting needs a verified address, so the copied
link only admits the sign-up. The copy now states the rule, the social or
SSO exception, and the operator path (a platform administrator creates
the account). Translations regenerated (en) and re-translated (ten
locales). No behaviour change.

Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
Co-authored-by: Claude <noreply@anthropic.com>
…iming anyone was told

sys_user.import_sso_users labelled its summary.alreadyPending field and
its alreadyPending column "Already pending, told again", which reads
true beside "Why not told: deactivated" for a deactivated pending
person, who is re-added without telling the host. Both now read
"Already pending", as Add User does; the host columns keep the told
answer. Translations regenerated (en) and re-translated (ten locales).

Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
Co-authored-by: Claude <noreply@anthropic.com>
…min to Copy Invite Link

Pins the link_only rule the previous commit wrote: neither the invite_user
mirrors nor resend_invitation hand the admin Copy Invite Link as the way in,
in English or in any of the ten translated bundles.

Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
Co-authored-by: Claude <noreply@anthropic.com>
…old"

The alreadyPending count and column read "Already pending"; whether the
host was told stays the host columns' answer, as on Add User.

Claude-Session: https://claude.ai/code/session_01Utp6CZiaBg6rk7dpy1s9Me
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/platform-objects, touching 6 documentable anchor(s).

22 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json f4dbcc2153566226f283c79c73255369c2c97587.

⛔ 11 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 1 anchor(s) matched too much of the corpus to be a work list: sys_user (symbol, 56 pages)
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json f4dbcc2153566226f283c79c73255369c2c97587 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 25b001cc0ad38f2ed0d1b5c9ca5dd447d7709085 — the merge of head ffa2ad230ccdf712106b653eb18bc6a578ba9ac3 into base f4dbcc2153566226f283c79c73255369c2c97587, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 25b001cc0ad38f2ed0d1b5c9ca5dd447d7709085 && git checkout 25b001cc0ad38f2ed0d1b5c9ca5dd447d7709085
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin f4dbcc2153566226f283c79c73255369c2c97587 ffa2ad230ccdf712106b653eb18bc6a578ba9ac3 && git checkout -B drift-repro f4dbcc2153566226f283c79c73255369c2c97587 && git merge --no-ff ffa2ad230ccdf712106b653eb18bc6a578ba9ac3

node scripts/docs-audit/affected-docs.mjs --json f4dbcc2153566226f283c79c73255369c2c97587

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs f4dbcc2153566226f283c79c73255369c2c97587 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Final green head for L1: ffa2ad230ccdf712106b653eb18bc6a578ba9ac3 · 2026-11-19T01:40Z

Checks at this head: 37 success, 16 skipped, 0 failed; mergeable clean. Not governed (check-governed-merges.mjs --pr 35274: 0 of 17 paths, 224 lines). Clause-②: no · Metadata-protocol: none. os-dev report: comment 6996645913 on #34889.
Sent to the L1 thread; the area lands after its ACCEPT. Companion docs PR #35275 (the released 18.5.0 CHANGELOG sentence, Part of #35164) is self-reviewed and landing separately.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 改了什么:两处 Setup 结果文案只说真话。① 没配邮件的部署上,邀请用户 / 重发邀请的结果提示不再叫管理员去用「复制邀请链接」,改为说明:接受邀请需要已验证邮箱,没邮件时只有通过社交或 SSO 登录验证了地址的人能接受,其他人由平台管理员直接建账号。② 导入用户结果里的「已在待激活中,已再次通知」改为「已在待激活中」(停用的待激活人员并不会被通知,旁边一列写着「未通知原因:已停用」,原文自相矛盾)。11 种语言同步。
  • 为什么改:fix(plugin-auth)!: accepting, declining and listing an invitation need a verified email address on every deployment #34883 之后接受邀请必须有已验证邮箱,旧提示让管理员去发一个对方用不了的链接。
  • 风险与回滚:只改文案和生成的译文,不改行为(结果、动作、复制邀请链接本身都不变)。回滚即 revert 本 PR。
  • 先看:invite-outcome-messages.ts 两句 link_only;sys-user.object.ts 两个标签。
  • 两分钟验证:在没配邮件的部署上邀请一个用户,提示里不再出现「复制邀请链接」,改为说明谁能接受、其他人怎么办。
  • 需要你做的:无,区内落地(非受管面、224 行)。L1 意见:两张卡合并合规,文案与 self-hosting 文档一致,可落;QA 清单里有一行还写着旧句子,已要求区补一张跟进卡。

席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head ffa2ad230ccdf712106b653eb18bc6a578ba9ac3 · 2026-11-19T01:43Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Landing · head ffa2ad230c · after L1-a ACCEPT 6997094395 · 2026-11-19T01:43Z

Probe Reading
Checks at head ffa2ad230c 37 success, 16 skipped, 0 failed; mergeable clean
check-governed-merges.mjs --pr 35274 NOT governed, 0 of 17 paths, 224 lines

Status: pr_ready + automerge_enable. On MERGED the area closes out #34889 and #35164 (naming #35275) and files the follow-up card ACCEPT 6997094395 asks for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants